From: Adrian Bunk Date: Tue, 17 Mar 2026 14:23:03 +0000 (+0100) Subject: Don't use __USE_GNU X-Git-Tag: archive/raspbian/1%8.0.4-1+rpi1^2~5 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/%22mailto:kde%40ewsoftware.de//%22style.css/%22/%22http:/www.example.com/%22mailto:kde%40ewsoftware.de/%22style.css/%22?a=commitdiff_plain;h=334e64add01659f05dcbb8c9968511d496c23d99;p=suricata.git Don't use __USE_GNU Bug-Debian: https://bugs.debian.org/890432 Last-Update: 2025-07-11 __USE_GNU is a glibc-internal symbol. AC_USE_SYSTEM_EXTENSIONS is the proper autoconf way to enable extensions. Gbp-Pq: Name no-use-gnu.patch --- diff --git a/configure.ac b/configure.ac index 1673bfcc..f0f5aca7 100644 --- a/configure.ac +++ b/configure.ac @@ -6,6 +6,7 @@ AM_INIT_AUTOMAKE([tar-ustar subdir-objects]) AC_LANG([C]) + AC_USE_SYSTEM_EXTENSIONS LT_INIT PKG_PROG_PKG_CONFIG diff --git a/src/suricata-common.h b/src/suricata-common.h index 3bfe4255..cce4f738 100644 --- a/src/suricata-common.h +++ b/src/suricata-common.h @@ -35,12 +35,6 @@ extern "C" #define DBG_PERF #endif -#ifndef _GNU_SOURCE -#define _GNU_SOURCE -#endif - -#define __USE_GNU - #if defined(__clang_analyzer__) /* clang analyzer acts as DEBUG_VALIDATION in some places, so * force this so #ifdef DEBUG_VALIDATION code gets included */